package interpreter;

/**
 * 计算乘法的 非终结符
 *
 * @author Koizumi Sinya
 * @date 2018/03/19. 21:10
 * @edithor
 * @date
 */
public class MulNode extends SymbolNode {

    public MulNode(Node left, Node right) {
        super(left, right);
    }

    @Override
    public int interpret() {
        return left.interpret() * right.interpret();
    }
}
